import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import './assets/style.css'

import App from './App.vue'
import router from './router'

import Main from '@/layout/detail/main.vue'
import Header from '@/layout/detail/header.vue'


const app = createApp(App)
const pinia = createPinia()  // pinia持久化
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.component('Main', Main)
app.component('Header', Header)


app.mount('#app')
